const fs = require('fs')
const path = require('path')

// fs.readFile(path.join(__dirname, 'README.md'), 'utf-8', (err, data) => {
//   if (err) throw err
//   console.log(data)
// })

function getPath (fpath) {
  fs.readFile(fpath, 'utf-8', (err, data) => {
    if (err) throw err
    console.log(data + 111)
  })
}

getPath(path.join(__dirname, 'README.md'))
